package com.entity.enums;

/***
 * 类描述: 客户积分日志枚举
 * 类型：0 客户积分减少  1客户积分增加 2门店积分维护
 * @author jack
 * @date 18/03/2017
 */
public enum CustomerPointLogEnum {
    CUSTOMER_POINT_DOWN(0),
    CUSTOMER_POINT_UP(1),
    SHOP_POINT_MANAGE(2),
    REFUND(3);
    int value;

    CustomerPointLogEnum(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public static String getFrontDesp(Integer value) {
        if (value == null) {
            return "";
        }
        if (value == CUSTOMER_POINT_DOWN.getValue()) {
            return "交易使用";
        }
        if (value == CUSTOMER_POINT_UP.getValue()) {
            return "交易获得";
        }
        if (value == REFUND.getValue()) {
            return "退款";
        }
        return "";
    }
}
